package com.example.bob.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
/*
* 1,Serializable:序列化与反序列化
* */
public class ArticleInfo implements Serializable {
    private int id; //编号
    private String title; //标题
    private String content; //正文
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")//局部的时间格式
    private LocalDateTime createtime; //创建时间
     //也是AOP,添加注解以后，
    private LocalDateTime updatetime; //更新时间
    private int uid; //作者编号
    private int recount; //阅读量
    private int state; //状态码

}
